package com.voxel.sense.infomsg.module.task.send;

import android.view.View;
import android.widget.TextView;

import com.example.com.common.view.recycler.RecyclerAdapter;
import com.voxel.sense.infomsg.R;
import com.voxel.sense.infomsg.data.bean.ConditionBean;

import butterknife.BindView;

/**
 * @author ChenYiYao
 * @date 2018/5/14
 * des :
 */
public class UserDatasAdapter extends RecyclerAdapter<ConditionBean> {
    @Override
    protected int getItemViewType(int position, ConditionBean conditionBean) {
        return R.layout.item_recycler_textview;
    }

    @Override
    protected ViewHolder<ConditionBean> onCreateViewHolder(View root, int viewType) {
        return new VHolder(root);
    }

    public static class VHolder extends ViewHolder<ConditionBean> {

        @BindView(R.id.iv_desc_icon)
        TextView iv_desc_icon;

        public VHolder(View itemView) {
            super(itemView);
        }

        @Override
        protected void onBind(ConditionBean bean) {
            iv_desc_icon.setText(bean.getDesc());
        }
    }

}
